package org.fuxia.im.common;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;

/**
 * 窗体位置辅助类
 *
 */
public class LocationUtil {

	 public static Point getCenterLocationOnScreen(int srcWidth,int srcHeight) {
		 Dimension screenSide = Toolkit.getDefaultToolkit().getScreenSize();
		 return new Point(screenSide.width/2 - srcWidth/2, screenSide.height/2-srcHeight/2) ;
	 }
}
